import 'package:flutter_trip/models/common_model.dart';
import 'package:flutter_trip/models/config_model.dart';
import 'package:flutter_trip/models/grid_nav_model.dart';

class SalesBoxModel{
  final String icon;
  final String moreUrl;
  final CommonModel bigCard1;
  final CommonModel bigCard2;
  final CommonModel smallCard1;
  final CommonModel smallCard2;
  final CommonModel smallCard3;
  final CommonModel smallCard4;

  SalesBoxModel(this.icon, this.moreUrl, this.bigCard1, this.bigCard2,
      this.smallCard1, this.smallCard2, this.smallCard3, this.smallCard4);

  factory SalesBoxModel.fromJson(Map<String,dynamic>json){
    return SalesBoxModel(
        json['icon'],
        json['moreUrl'],
        CommonModel.fromJson(json['bigCard1']),
        CommonModel.fromJson(json['bigCard2']),
        CommonModel.fromJson(json['smallCard1']),
        CommonModel.fromJson(json['smallCard2']),
        CommonModel.fromJson(json['smallCard3']),
        CommonModel.fromJson(json['smallCard4']),);

  }
}


